<template>
  <span>{{ treeData.name }}</span>
</template>

<script lang="ts">
import { defineComponent, PropType } from "vue";
import { TreeData } from "./type";
export default defineComponent({
  name: "wnode",
  props: {
    treeData: {
      type: Object as PropType<TreeData>,
      required: true,
      default: () => {
        return {};
      },
    },
  },
});
</script>
